package dkzcm.club.oss.service;

import dkzcm.club.oss.adapter.StorageAdapter;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @desc:
 * @author: xk
 * @version: 1.0
 * Create by 2025/1/5 20:52
 */

@Service
public class FileService {

    private final StorageAdapter storageAdapter;

    //  手动注入service  需要storageConfig 否则无法找到service
    public FileService(StorageAdapter storageAdapter) {
        this.storageAdapter = storageAdapter;
    }

    public List<String> getAllBucket() {
        return storageAdapter.getAllBucket();
    }
}
